#!/usr/bin/python
#-*- coding: utf-8 -*-
# Copyright (C) 2009 PetaUploader-GTK Installer
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

import os

def setup():
	os.system('chmod a+x petauploader')
	os.system('cp petauploader /usr/bin')
	print "Installing Uploader... 	[OK]"
	os.system('chmod a+x petauploader-gtk')
	os.system('cp petauploader-gtk /usr/bin')
	print "Installing GTK....	[OK]"

def notRoot():
	print "Please run install.py as root."

if os.getenv('USER') == 'root': 
	setup()
	
else:
	notRoot()
